package com.ysd.entity;

public class Product { // 实体类,私有属性 + getset方法 + (带参/无参)构造方法 + toString
	private int productId;
	private String productName;
	private int marketPrice;
	private int beginmarketPrice;
	private int endmarketPrice;
	private String brand;
	private String isDistribution;
	private String isCashPayment;
	private String flavor;
	private String productImg;
	private int productCategoryId;

	private String productCategoryName;

	public Product(int productId, String productName, int marketPrice, int beginmarketPrice, int endmarketPrice,
			String brand, String isDistribution, String isCashPayment, String flavor, String productImg,
			int productCategoryId, String productCategoryName) {
		super();
		this.productId = productId;
		this.productName = productName;
		this.marketPrice = marketPrice;
		this.beginmarketPrice = beginmarketPrice;
		this.endmarketPrice = endmarketPrice;
		this.brand = brand;
		this.isDistribution = isDistribution;
		this.isCashPayment = isCashPayment;
		this.flavor = flavor;
		this.productImg = productImg;
		this.productCategoryId = productCategoryId;
		this.productCategoryName = productCategoryName;
	}

	public int getProductId() {
		return productId;
	}

	public void setProductId(int productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public int getMarketPrice() {
		return marketPrice;
	}

	public void setMarketPrice(int marketPrice) {
		this.marketPrice = marketPrice;
	}

	public int getBeginmarketPrice() {
		return beginmarketPrice;
	}

	public void setBeginmarketPrice(int beginmarketPrice) {
		this.beginmarketPrice = beginmarketPrice;
	}

	public int getEndmarketPrice() {
		return endmarketPrice;
	}

	public void setEndmarketPrice(int endmarketPrice) {
		this.endmarketPrice = endmarketPrice;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getIsDistribution() {
		return isDistribution;
	}

	public void setIsDistribution(String isDistribution) {
		this.isDistribution = isDistribution;
	}

	public String getIsCashPayment() {
		return isCashPayment;
	}

	public void setIsCashPayment(String isCashPayment) {
		this.isCashPayment = isCashPayment;
	}

	public String getFlavor() {
		return flavor;
	}

	public void setFlavor(String flavor) {
		this.flavor = flavor;
	}

	public String getProductImg() {
		return productImg;
	}

	public void setProductImg(String productImg) {
		this.productImg = productImg;
	}

	public int getProductCategoryId() {
		return productCategoryId;
	}

	public void setProductCategoryId(int productCategoryId) {
		this.productCategoryId = productCategoryId;
	}

	public String getProductCategoryName() {
		return productCategoryName;
	}

	public void setProductCategoryName(String productCategoryName) {
		this.productCategoryName = productCategoryName;
	}

	public Product(int productId, String productName, String productImg) {
		super();
		this.productId = productId;
		this.productName = productName;
		this.productImg = productImg;
	}

	public Product(int productId, String productName, int marketPrice, String brand, String isDistribution,
			String isCashPayment, String flavor, String productImg, int productCategoryId) {
		super();
		this.productId = productId;
		this.productName = productName;
		this.marketPrice = marketPrice;
		this.brand = brand;
		this.isDistribution = isDistribution;
		this.isCashPayment = isCashPayment;
		this.flavor = flavor;
		this.productImg = productImg;
		this.productCategoryId = productCategoryId;
	}

	public Product(int productId, String productImg) {
		super();
		this.productId = productId;
		this.productImg = productImg;
	}
	
	public Product() {
		super();
	}

	@Override
	public String toString() {
		return "Product [productId=" + productId + ", productName=" + productName + ", marketPrice=" + marketPrice
				+ ", beginmarketPrice=" + beginmarketPrice + ", endmarketPrice=" + endmarketPrice + ", brand=" + brand
				+ ", isDistribution=" + isDistribution + ", isCashPayment=" + isCashPayment + ", flavor=" + flavor
				+ ", productImg=" + productImg + ", productCategoryId=" + productCategoryId + ", productCategoryName="
				+ productCategoryName + "]";
	}

}
